package com.mydemo.springlearning.functions.CRUDdemo.entity;


import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String userName;
    private String password;
    private UserSexEnum userSex;
    private String nickName;


    public User(String userName, String password, UserSexEnum userSex) {
        super();
        this.password = password;
        this.userName = userName;
        this.userSex = userSex;
    }


}

